// 这里是楼号
const mongoose = require('mongoose')

const schema = new mongoose.Schema({
    name: {
        type: String,
        required: true
    },
    //所属小区
    parentCell: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'Cell'
    }
})

module.exports = mongoose.model('Floor', schema)